package com.quick.driver.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.quick.common.bean.Car;
import com.quick.common.service.ICarService;
import com.quick.driver.mapper.CarMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarService {

    @Override
    public Car getCar(Integer id) {
        return super.getById(id);
    }

    @Override
    public int addCar(Car car) {
        super.save( car);
        return car.getId();
    }

    @Override
    public void editCar(Car car) {
        super.updateById(car);

    }

}
